/**
 * Copyright &copy; 2012-2016 <a href="https://git.oschina.net/zdw2016/webbase5">Webbase</a> All rights reserved.
 */
package com.foreveross.webbase.projectdemo.entity;

import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.foreveross.webbase.common.persistence.DataEntity;

/**
 * 审核管理Entity
 * 
 * @author yangwanli
 * @version 2017-03-16
 */
public class Serverinformation extends DataEntity<Serverinformation> {

	private static final long serialVersionUID = 1L;
	private String projectname; // 项目名字
	private List<String> typeList; // 服务器类型id集合
	private String version; // 版本
	private String serverexplain; // 服务器信息说明
	private String projectid; // 项目id
	private String status; // 审核状态
	private String approval; // 审核信息
	
	public String getApproval() {
		return approval;
	}

	public void setApproval(String approval) {
		this.approval = approval;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Serverinformation() {
		super();
	}

	public Serverinformation(String id, String projectid) {
		super(id);
		this.projectid = projectid;
	}

	public Serverinformation(String id) {
		super(id);
	}

	@Length(min = 0, max = 32, message = "项目名字长度必须介于 0 和 32 之间")
	public String getProjectname() {
		return projectname;
	}

	public void setProjectname(String projectname) {
		this.projectname = projectname;
	}
	

	@Length(min = 0, max = 255, message = "版本长度必须介于 0 和 32 之间")
	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	@Length(min = 0, max = 1000, message = "服务器信息说明长度必须介于 0 和 1000 之间")
	public String getServerexplain() {
		return serverexplain;
	}

	public void setServerexplain(String serverexplain) {
		this.serverexplain = serverexplain;
	}

	@Length(min = 0, max = 32, message = "项目id长度必须介于 0 和 32 之间")
	public String getProjectid() {
		return projectid;
	}

	public void setProjectid(String projectid) {
		this.projectid = projectid;
	}

	public List<String> getTypeList() {
		return typeList;
	}

	@JsonIgnore
	public void setTypeList(List<String> typeList) {
		this.typeList = typeList;
	}

}